import QtQuick 2.0

Item {
    Image {
        id: page
        fillMode: Image.Tile
        anchors.fill: parent
    }
    Image {
        id: page_bg
        anchors.horizontalCenter: parent.horizontalCenter
    }

    states: [
        State {
            name: "brushed"
            PropertyChanges { target: page; source: "img/background/brushed/page.jpg"; }
            PropertyChanges { target: page_bg; visible: false }
        },
        State {
            name: "carbon"
            PropertyChanges { target: page; source: "img/background/carbon/page.jpg"; }
            PropertyChanges { target: page_bg; visible: false }
        },
        State {
            name: "dust"
            PropertyChanges { target: page; source: "img/background/dust/page.jpg"; }
            PropertyChanges { target: page_bg; source: "img/background/dust/page_bg.jpg" }
        },
        State {
            name: "grunge"
            PropertyChanges { target: page; source: "img/background/grunge/page.jpg"; }
            PropertyChanges { target: page_bg; source: "img/background/grunge/page_cracks.png" }
        },
        State {
            name: "noise"
            PropertyChanges { target: page; source: "img/background/noise/page.jpg"; }
            PropertyChanges { target: page_bg; visible: false }
        },
        State {
            name: "space"
            PropertyChanges { target: page; source: "img/background/space/page.jpg"; }
            PropertyChanges { target: page_bg; source: "img/background/space/page_bg.jpg" }
        }
    ]
}
